package jdx_07_DCL;

/*
懒汉式
 */
public class Mgr02 {
    private static Mgr02 INSTANCE;

    private Mgr02(){}

    public static Mgr02 getInstance(){
        if(INSTANCE==null){//【实验2】判断是否为空
            INSTANCE = new Mgr02();
        }
        return INSTANCE;
    }
}
